package com.sy.simpleegg.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.sy.simpleegg.platform.BackstagePlatform


@Entity(tableName = "tb_cash_package")
data class CashPackageEntity(
    @PrimaryKey(autoGenerate = true) var id: Long = 0,
    @ColumnInfo(name = "platform") var platform: BackstagePlatform = BackstagePlatform.DEF_MQTT,
    @ColumnInfo(name = "packageId") var packageId: String = "",//
    @ColumnInfo(name = "price") var price: String = "",//价格
    @ColumnInfo(name = "coins") var coins: String = "",//币数
    @ColumnInfo(name = "donate") var donate: String = "",//增币
    @ColumnInfo(name = "sort") var sort: Int = -1,//
    @ColumnInfo(name = "type") var type: Int = -1,//
    @ColumnInfo(name = "name") var name: String = "",//
    @ColumnInfo(name = "url") var url: String = "",//
    @ColumnInfo(name = "enable") var enable: Int = 1,// 0-禁用 1-启用
    @ColumnInfo(name = "time") var time: String = "",//yyyy-MM-dd HH:mm:ss
){
    @Ignore()
    constructor(): this(0)
}
